package cn.stylefeng.guns.modular.gridsystem.enums;

import cn.stylefeng.guns.core.exception.enums.abs.AbstractBaseExceptionEnum;
import lombok.Getter;

/**
 * 采集端故障枚举类
 *
 * @author zxw 2022/12/17 16:17
 */
@Getter
public enum CollectionFaultEnum implements AbstractBaseExceptionEnum {

    GROUP_ID_OR_ACCESS_TOKEN_ERROR(501, "算法ID或算法分组号错误"),

    COLLECTION_CAN_NOT_GET_FILE(502, "采集端获取不到服务器文件"),

    COLLECTION_NO_RESPONSE(503, "采集端引擎无响应"),

    COLLECTION_SERVER_ERROR(504, "采集端引擎报错"),

    SOUND_CARD_NOT_FOUND(505, "声卡没有找到或声卡线路异常"),

    FTP_MODE_FILE_SIZE_ERROR(506, "FTP模式文件大小错误"),

    NETWORK_CARD_ERROR(507, "网卡错误");

    private final Integer code;

    private final String message;

    CollectionFaultEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
